﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="station shop, products, theme, website templates, CSS, HTML" />
<meta name="description" content="Station Shop Products - free CSS template by templatemo.com" />
<title>@ViewBag.Title</title>

<link href="@Url.Content("~/Content/templatemo_style.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/ddsmoothmenu.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/jquery.dualSlider.0.2.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/rateit.css")" rel="stylesheet" type="text/css" />

<script src="@Url.Content("http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js")" type="text/javascript"></script>

</head>

<body>

<div id="templatemo_wrapper">
	<div id="templatemo_header">
    	
    	<div id="site_title">
        	<h1>Mobile Apps</h1>
        </div>

        <div id="header_right">
		</div>
        
        <div class="cleaner"></div>
    </div> <!-- END of templatemo_header -->
    
    <div id="templatemo_menu">
    	<div id="top_nav" class="ddsmoothmenu">
            <ul>
               @{
                    if (User.IsInRole("Administrator"))
                    {
                        <li>@Html.ActionLink("Zarządzaj aplikacjami", "Index", "ApplicationManager")</li>
                        <li>@Html.ActionLink("Wyloguj", "LogOff", "Account")</li>
                    }
                    else if (User.IsInRole("Member"))
                    {                   
                        <li>@Html.ActionLink("Wyloguj", "LogOff", "Account")</li>
                    }
                    else
                    {
                        <li>@Html.ActionLink("Zaloguj", "LogOn", "Account")</li>
                        <li>@Html.ActionLink("Rejestracja", "Register", "Account")</li>
                    }
                }
            </ul>
            <br style="clear: left" />
        </div> <!-- end of ddsmoothmenu -->
        <div id="menu_second_bar">
        	<div id="top_shopping_cart">
	        @{
                Html.RenderAction("CartLink", "Cart");
	        }
            </div>
        	<div id="templatemo_search">
                <form action="#" method="get">
                  <input type="text" value="Search" name="keyword" id="keyword" title="keyword" onfocus="clearText(this)" onblur="clearText(this)" class="txt_field" />
                  <input type="submit" name="Search" value=" Search " alt="Search" id="searchbutton" title="Search" class="sub_btn"  />
                </form>
            </div>
            <div class="cleaner"></div>
    	</div>
    </div> <!-- END of templatemo_menu -->
    
    <div id="templatemo_main">
   		<div id="sidebar" class="float_l">
        	<div class="sidebar_box"><span class="bottom"></span>
            	<h3>Categories</h3>   
                <div class="content"> 
                @{
                    Html.RenderAction("CategoryMenu","Store");
                }
                </div>
            </div>
            <div class="sidebar_box"><span class="bottom"></span>
            	<h3>Najczęsciej kupowane </h3>   
                <div class="content"> 
                	@{
	                    Html.RenderAction("BestSellers","Store");
	                }
                </div>
            </div>
        </div>
        <div id="content" class="float_r">
            @RenderBody()
        </div> 
        <div class="cleaner"></div>
    </div> <!-- END of templatemo_main -->
    
    <div id="templatemo_footer">
    	Copyright © 2013 <a href="#">App Store Site</a>
    </div> <!-- END of templatemo_footer -->
    
</div> <!-- END of templatemo_wrapper --></div>

<script src="@Url.Content("~/Scripts/jquery.rateit.min.js")" type="text/javascript"></script>

<script language="javascript" type="text/javascript">
    function clearText(field) {
        if (field.defaultValue == field.value) field.value = '';
        else if (field.value == '') field.value = field.defaultValue;
    }
</script>

</body>
</html>